package com.mspbots.rule.queue.ticket;

import com.mspbots.cw.request.TenantTicketDTO;
import lombok.extern.slf4j.Slf4j;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * @ClassName com.mspbots.rule.queue.ticket.TicketInProcessQueue
 * @Description TODO
 * @Author Jun
 * @Date 2019/9/2 16:59
 * @Version 1.0
 **/
@Slf4j
@Component
public class TicketInProgressQueue extends TicketBaseQueue {

    private static final String RULE_NAME = "TicketInProgress";

    @RabbitListener(queues = "trigger.ticket.TicketInProgress")
    public void onQueue(TenantTicketDTO tenantTicketDTO) {
        super.onRule(RULE_NAME, tenantTicketDTO);
    }

}
